package com.xiu.test;

import static org.junit.Assert.fail;

import org.junit.Before;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;

import com.xiu.mapper.ExamSubjectMapper;
import com.xiu.pojo.ExamSubject;
import com.xiu.service.SubjectManageService;

public class SubjectTest1 {

	@Autowired
	SubjectManageService subjectManageService;
	
	@Autowired
	ExamSubjectMapper examSubjectMapper;
	@Before
	public void setUp() throws Exception {
	}

	@Test
	public void test() {
		fail("Not yet implemented");
	}
	
	ExamSubject examSubject = new ExamSubject();
	//通过id查找科目信息
	@Test
	public void findSubjectById(){
		examSubject =examSubjectMapper.selectByPrimaryKey(1);
		System.out.println(examSubject);
	}

}
